/*
 * Copyright 2018 JDCLOUD.COM
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http:#www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * 
 * 
 *
 * 
 * Contact: 
 *
 * NOTE: This class is auto generated by the jdcloud code generator program.
 */


using System;
using System.Collections.Generic;
using System.Text;

using JDCloudSDK.Core.Annotation;

namespace JDCloudSDK.Kubernetes.Model
{

    /// <summary>
    ///  集群的网络配置参数
    /// </summary>
    public class ClusterNetworkSpec
    {

        ///<summary>
        /// kube-apiserver是否可公网访问，false则kube-apiserver不绑定公网地址，true绑定公网地址
        ///Required:true
        ///</summary>
        [Required]
        public bool PublicApiServer{ get; set; }
        ///<summary>
        /// master网络的cidr
        ///Required:true
        ///</summary>
        [Required]
        public string MasterCidr{ get; set; }
        ///<summary>
        /// service网络的cidr
        ///Required:true
        ///</summary>
        [Required]
        public string ServiceCidr{ get; set; }
        ///<summary>
        /// 用户侧承载node和pod的vpc id
        ///Required:true
        ///</summary>
        [Required]
        public string VpcId{ get; set; }
        ///<summary>
        /// 初始pod的子网id
        ///Required:true
        ///</summary>
        [Required]
        public string PodSubnetId{ get; set; }
        ///<summary>
        /// 初始loadbalancer类型的service所创建的lb所在的subnet
        ///Required:true
        ///</summary>
        [Required]
        public string LbSubnetId{ get; set; }
        ///<summary>
        /// 初始的node子网ID
        ///Required:true
        ///</summary>
        [Required]
        public string NodeSubnetId{ get; set; }
        ///<summary>
        /// nat网关配置
        ///Required:true
        ///</summary>
        [Required]
        public NatGatewaySpec NatGateway{ get; set; }
    }
}
